package ua.com.globallogic.training.subway;

public class TripsBoundCardState extends CardState {

    private int tripsCount;

    public TripsBoundCardState(int id, int tripsCount) {
        super(id);
        this.tripsCount = tripsCount;
    }

    @Override
    public void chargeOneTrip() {
        tripsCount = tripsCount - 1;
    }

    public int getTripsCount() {
        return tripsCount;
    }
}
